import request from '@/api/request'

export default {
  /* 登录 */
  login: ({ username, password, captcha, key, remember } = {}) => {
    return request({
      url: '/login/login',
      method: 'post',
      data: { username, password, captcha, key, remember }
    })
  },
  /* 获取登录验证码 */
  getCaptcha: () => {
    return request({
      url: '/login/captcha',
      method: 'get'
    })
  }
}
